﻿using System;

namespace AutofacDemo
{
    public class Student : Person
    {
        //public IHelloService HelloService { get; set; }
        
        public override void SayHi(string name)
        {
            Console.WriteLine($"hi {name}");
        }

        public override void SayHello(string name)
        {
            string hello = HelloService?.SayHello(name).Result;
            Console.WriteLine($"what the fuck from property dependency injection!");
            Console.WriteLine(hello);
        }
    }
}